package com.xsocket.study.client;

import java.io.IOException;

import org.xsocket.connection.BlockingConnection;
import org.xsocket.connection.IBlockingConnection;

public class BlockClient {
	
	public static void main(String[] args) throws IOException{

		
		IBlockingConnection bc = new BlockingConnection("127.0.0.1", 4444);
		
		bc.write(" client a string\r\n");
		
		String returnStr = bc.readStringByDelimiter("\r\n");
		
		System.out.println(returnStr);
		bc.close();
		

	}

}
